#include<iostream>
using namespace std; 
int main(){
	int n;
	scanf("%d",&n);
	int sum=4*n;
	int ans=0;
	while(sum>=60)
	if(sum>=60) {ans++;sum-=60;}
	printf("%d:%d",ans,sum); 
	return 0;
} 
